import request from '@/utils/request'

// 查看一体杆列表/pole/info/list
export function getRodListAPI(params) {
  return request({
    url: '/pole/info/list',
    params
  })
}

// 添加一体杆/pole/info
export function addRodAPI(data) {
  return request({
    url: '/pole/info',
    method: 'post',
    data
  })
}

// 编辑一体杆/pole/info
export function editRodAPI(data) {
  return request({
    url: '/pole/info',
    method: 'put',
    data
  })
}

// 删除一体杆/pole/info/{ids}
export function deleteRodAPI(id) {
  return request({
    url: '/pole/info/' + id,
    method: 'delete'
  })
}
